package com.onetime.mall.trading.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.onetime.mall.trading.entity.AddressEntity;
import com.onetime.mall.trading.utils.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * 地址表
 *
 * @author liyixuan
 * @email liyixuan106@163.com
 * @date 2022-03-26 19:38:29
 */
public interface AddressService extends IService<AddressEntity> {

    PageUtils queryPage(Map<String, Object> params);

    boolean addAddress(AddressEntity addressEntity);

    boolean deleteAddress(AddressEntity addressEntity);

    List<AddressEntity> getAddressByUser(Long userId);

    AddressEntity getAddressById(Long id, Long userId);

    boolean updateAddress(AddressEntity addressEntity);
}

